package com.telnikoff.ts.gui;

import javax.swing.JScrollPane;
import javax.swing.JTree;

import com.telnikoff.gf.GfContributionCollector;
import com.telnikoff.gf.GfContributor;
import com.telnikoff.gf.GfMenuFactory;

class WorkspaceTreeComponent implements GfContributor<JScrollPane>
{
	private final JTree tree;
	private final WorkspaceTreeModel model;
	
	WorkspaceTreeComponent()
	{
		model = new WorkspaceTreeModel();
		tree = new JTree(model);
	}

	@Override
	public void contribute(GfContributionCollector<JScrollPane> collector) 
	{
		collector.getJComponent().setViewportView(tree);
	}

	@Override
	public void contribute(GfMenuFactory mf) {
		// TODO Auto-generated method stub
		
	}

}
